<table width="100%">
<tr bgcolor="#00FFFF">
<td>材料名称</td>
<td>装修位置</td>
<td>价格类型</td>
<td>销售价格</td>
<td>折扣</td>
<td>材料说明</td>
<td>有效时间</td>
<td>素材图片</td>
<td>上架时间</td>
<td>是否上架</td>
<td>热度排行</td>
<td>销售数量</td>
<td>操作</td>
</tr>
<?php foreach ($decorate_list as $dl): ?>
<tr>
<td><?php echo $dl['sName']; ?></td>
<td>
<?php if($dl['nPosit'] == 1): ?>墙面
<?php elseif ($dl['nPosit'] == 2): ?>墙面悬挂
<?php elseif ($dl['nPosit'] == 3): ?>地面
<?php elseif ($dl['nPosit'] == 4): ?>地面摆放
<?php elseif ($dl['nPosit'] == 5): ?>坠饰
<?php elseif ($dl['nPosit'] == 6): ?>柜台
<?php elseif ($dl['nPosit'] == 7): ?>垃圾桶
<?php endif; ?>
</td>
<td>
<?php if($dl['nPriceType'] == 1): ?>金币
<?php elseif ($dl['nPriceType'] == 2): ?>虚拟币
<?php endif; ?>
</td>
<td><?php echo $dl['nPrice']; ?></td>
<td>
<?php if($dl['nRebate'] == '1.0'): ?>不打折
<?php else: ?><?php echo $dl['nRebate']*10; ?>折
<?php endif; ?>
</td>
<td><?php echo $dl['sDescript']; ?></td>
<td><?php echo $dl['nValid']; ?></td>
<td><img src="<?php echo DECORATE_URL.$dl['sUrl']; ?>" border="0" width="100" height="100" /></td>
<td><?php echo date("Y-m-d H:i:s", $dl['nCrTime']); ?></td>
<td>
<?php if($dl['nOnShelf'] == 1): ?>上架
<?php elseif ($dl['nOnShelf'] == 0): ?>下架
<?php endif; ?>
</td>
<td><?php echo $dl['nHeat']; ?></td>
<td><?php echo $dl['nSells']; ?></td>
<td><a href="decorate.php?act=edit&id=<?php echo $dl['id']; ?>">编辑</a> | <a href="decorate.php?act=delete&id=<?php echo $dl['id']; ?>">删除</a></td>
</tr>
<?php endforeach; ?>
</table>